package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

//套餐
public interface SetmealService {

    //分页查询
    Page<Setmeal> findPage(Integer pageNum, Integer pageSize, String name);

    //新增套餐
    void save(Setmeal setmeal);

    //ID回显
    Setmeal findById(long id);

    //修改
    void updateSetmeal(Setmeal setmeal);

    //更改起售-停售
    void updateStatus(Integer status, List<Long> ids);

    void deleteBatch(List<Long> ids);

    List<Setmeal> list(Long categoryId, Integer status);

    //根据套餐ID回显菜品
    List<Dish> dish(Long id);
}
